<?php
/*
Plugin Name: Scouters' Log
Plugin URI: TBD
Description: Tools to help adult and youth leaders organize their Scouting units.
Author: Bryant Byrd
Author URI: TBD
Version: 0.0.1
Tags: scouting, calendar, event, planning, club, troop, pack, crew, team
License: GPL2
**************************************************************************
Copyright 2011  Bryant E. Byrd  (email : bryant@mindfair.com)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as 
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
**************************************************************************
*/
define ( "SLOG_PLUGIN_NAME", "scouterslog");
define ( "SLOG_PATH", WP_PLUGIN_DIR . "/" . SLOG_PLUGIN_NAME . "/");
define ( "SLOG_CLASS_PATH", SLOG_PATH . "classes/");
define ( "SLOG_IMAGES_URL", WP_PLUGIN_URL . "/" . SLOG_PLUGIN_NAME . "/images/");
define ( "SLOG_UI_PATH", SLOG_PATH . "ui/");
define ( "SLOG_UTILITIES_PATH", SLOG_PATH . "utilities/");

require_once (ABSPATH . "wp-admin/includes/upgrade.php");

require_once (SLOG_CLASS_PATH . "Scouters_Log_Database.php");
require_once (SLOG_CLASS_PATH . "Day.php");
require_once (SLOG_CLASS_PATH . "Week.php");

require_once (SLOG_UI_PATH . "Scouters_Log_Options.php");
require_once (SLOG_UI_PATH . "Calendar_Display.php");
require_once (SLOG_UI_PATH . "Event_Editor.php");

global $slogdb;
$slogdb = new Scouters_Log_Database();

global $slog_calendar_display_controller;
$slog_calendar_display_controller = new Calendar_Display_Controller();

global $slog_event_editor;
$slog_event_editor = new Event_Editor();

global $slog_options;
$slog_options = new Scouters_Log_Options();

register_activation_hook ( __FILE__, array ( "Scouters_Log_Database", "db_setup" ) );